package com.xuexiang.xuidemo.ability;

import ohos.aafwk.content.Intent;

import com.xuexiang.xuidemo.slice.FlexboxLayoutAbilitySlice;
import com.xuexiang.xuidemo.slice.FlowLayoutAbilitySlice;
import com.xuexiang.xuidemo.slice.FlowTagLayoutAbilitySlice;
import com.xuexiang.xuidemo.slice.NormalFlowLayoutAbilitySlice;

/**
 * 流布局
 */
public class FlowLayoutAbility extends BaseStatusAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(FlowLayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, FlowTagLayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, NormalFlowLayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, FlexboxLayoutAbilitySlice.class.getName());
    }
}
